package com.game;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.view.View.OnClickListener;

public class PlayGame extends Activity {
	private DBAdapter myDBAdapter;
	private Button OkButton;
	private EditText gameInput;
	private TextView gameBody;
	private TextView gameChoices;
	private int gameId;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.playgame);

		OnClickListener myClickListener = new OnClickListener(){
			@Override
			public void onClick(View v) {
				if(v==OkButton){
					nextStep();
				}
				if(v==gameInput){
					showChoices();
				}
					
			}
		};
		
		OkButton = (Button) findViewById(R.id.sg_playButton);
		OkButton.setOnClickListener(myClickListener);
		gameInput.setOnClickListener(myClickListener);
		
		myDBAdapter = ((txtGameApplication)this.getApplication()).getDatabaseAdapter();
		
		Bundle extras = getIntent().getExtras();
		if(extras != null){
			gameId = Integer.parseInt(extras.getString("EXTRA_GAME_ID"));
		}
		
		showStartStep();
	
	}

	private void nextStep() {
	}
	
	private void showChoices() {
	}
	
	private void showStartStep(){
		
	}
}
